/*
 * ChangeMidiChannelCmd.h
 *
 *  Created on: 27/lug/2011
 *      Author: marcolembo
 */

#ifndef CHANGEMIDICHANNELCMD_H_
#define CHANGEMIDICHANNELCMD_H_


#include "Command.h"

//a partire dal controllo deve inviare il comando di settaggio del canale midi
//Instanziazione:
/*
 *  ChangeMidiChannelCmd(ctrl, midiChannel);
 */

class ChangeMidiChannelCmd: public Command
{
    public:
        ChangeMidiChannelCmd(
                MidiControl* _ctrl,
                short _ch)
        : m_midiChannel(_ch)
        {}

        virtual void Execute()
        {
            ctrl->SetMidiChannel(m_midiChannel);
        }
    protected:
        MidiControl * ctrl; //il ricevitore
        short m_midiChannel;

};

#endif /* CHANGEMIDICHANNELCMD_H_ */
